//
//  XMNetwork+message.h
//  XMJJ_zml
//
//  Created by apple on 2025/5/12.
//

#import "XMNetwork.h"

NS_ASSUME_NONNULL_BEGIN

@interface XMNetwork (message)

/**
 获取消息
 */
- (void)getMessageWithUserId:(NSString *)userId
                     success:(void (^)(id responseObject))successBlock
                     failure:(void (^)(NSError *error))failureBlock;

/**
 会话列表
 */
- (void)getContactListWithUserId:(NSString *)userId
                       timeStamp:(NSInteger)timeStamp
                      startIndex:(NSInteger)startIndex
                         success:(void (^)(id responseObject))successBlock
                         failure:(void (^)(NSError *error))failureBlock;

@end

NS_ASSUME_NONNULL_END
